<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
<%@ page import="websem.handlers.RequestHandler" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%
	// If there was a search paremeter, then search into docs and post a downloadable file
	if (request.getParameter("search") != null && !request.getParameter("search").equals("")) {
		String search = request.getParameter("search");
		
		RequestHandler req_handler = new RequestHandler();
		req_handler.handleRequest(search);
		
	}
%>

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Insert title here</title>
	
	<style type="text/css">
		body {
			background-image:url('res/background.png');
		}
		
		#search_input {
			margin-top:80px;
			margin-left:780px;
			
			height:50px;
			width:370px;
			
			background:none;
			border:none;
			
			color:white;
			font-size:32px;
			font-family:'Verdana';
		}
		
		#search_submit {
			margin-top: 320px;
			margin-left: 900px;
		
			height: 100px;
			width: 100px;
			
			background-image:url('res/mglass_icon.png');
			background-color:transparent;
			
			border:none;
		}
	</style>
</head>

<body>
	<div >
		<form>
			<input id="search_submit" type="submit" value=""/>
			<input id="search_input" name="search" type="text" value="Test search"/>
		</form>
	</div>
</body>
</html>